package com.coolw.design.pattern.create.builder;

/**
 * 指挥官
 *
 * @author coolw
 * @date 2019-12-24 10:59
 */
public class Director {

    public Robot createRobotByDirecotr(IBuildRobot ibr) {
        ibr.buildBody();
        ibr.buildFoot();
        ibr.buildHand();
        ibr.buildHead();
        return ibr.getRobotResult();
    }
}
